<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>织梦模板标签快速替换且复制</title>
    <meta name="author" content="xslooi"/>
    <meta name="copyright" content="xslooi"/>
    <!--自定义css-->
    <link rel="stylesheet" type="text/css" href="style/css/main.css" />
    <!--jquery库文件-->
    <script type="text/javascript" src="style/js/jquery-1.12.4.min.js"></script>
    <!--复制剪切板js-->
    <script type="text/javascript" src="style/js/clipboard/clipboard.min.js"></script>
    <!--layer弹出js-->
    <script type="text/javascript" src="style/layer/layer.js"></script>
    <!--自定义js-->
    <script type="text/javascript" src="style/js/main.js"></script>

</head>
<body>
<form name="mainForm" id="mainForm">
    <fieldset>
        <legend>源代码输入框</legend>
        <div id="inputSourceCodeBox">
            <textarea name="sourcebox" id="sourcebox" placeholder="请输入或粘贴需要替换的网页源代码（需要织梦标签替换的部分）
如：
&#x3C;&#x64;&#x69;&#x76;&#x20;&#x63;&#x6C;&#x61;&#x73;&#x73;&#x3D;&#x22;&#x63;&#x6F;&#x6E;&#x74;&#x61;&#x69;&#x6E;&#x65;&#x72;&#x22;&#x3E;
&#x20;&#x20;&#x20;&#x20;&#x3C;&#x61;&#x20;&#x68;&#x72;&#x65;&#x66;&#x3D;&#x22;&#x68;&#x74;&#x74;&#x70;&#x3A;&#x2F;&#x2F;&#x77;&#x77;&#x77;&#x2E;&#x62;&#x61;&#x69;&#x64;&#x75;&#x2E;&#x63;&#x6F;&#x6D;&#x22;&#x20;&#x74;&#x69;&#x74;&#x6C;&#x65;&#x3D;&#x22;&#x767E;&#x5EA6;&#x4E00;&#x4E0B;&#x22;&#x3E;
&#x20;&#x20;&#x20;&#x20;&#x20;&#x20;&#x20;&#x20;&#x3C;&#x69;&#x6D;&#x67;&#x20;&#x73;&#x72;&#x63;&#x3D;&#x22;&#x68;&#x74;&#x74;&#x70;&#x3A;&#x2F;&#x2F;&#x77;&#x77;&#x77;&#x2E;&#x62;&#x61;&#x69;&#x64;&#x75;&#x2E;&#x63;&#x6F;&#x6D;&#x2F;&#x6C;&#x6F;&#x67;&#x6F;&#x2E;&#x70;&#x6E;&#x67;&#x22;&#x20;&#x61;&#x6C;&#x74;&#x3D;&#x22;&#x767E;&#x5EA6;&#x4E00;&#x4E0B;&#x22;&#x3E;
&#x20;&#x20;&#x20;&#x20;&#x3C;&#x2F;&#x61;&#x3E;
&#x20;&#x20;&#x20;&#x20;&#x3C;&#x62;&#x3E;&#x767E;&#x5EA6;&#x4E00;&#x4E0B;&#x3C;&#x2F;&#x62;&#x3E;
&#x3C;&#x2F;&#x64;&#x69;&#x76;&#x3E;"></textarea>
        </div>
        <div id="syntaxhighlighterBox"></div>
    </fieldset>

    <fieldset>
        <legend>操作状态栏</legend>
        <div id="msgBoxContainer">
                <b style="color: lightslategray;">暂无操作</b>
        </div>
    </fieldset>

    <fieldset>
        <legend>控制按钮面板</legend>

        <div class="controllerRow">
            <label>标签版本：</label>
            <input id="platform_pc" type="radio" name="platform" value="pc" checked="checked">
            <label class="selected" for="platform_pc">电脑版</label>
            <input id="platform_wap" type="radio" name="platform" value="wap">
            <label for="platform_wap">手机版</label>
            &nbsp; &nbsp; &nbsp; &nbsp;
            <button class="button" value="analysis_nav" type="button"> 分析导航列表 </button>
            <button class="button" value="analysis_navtree" type="button"> 分析导航结构 </button>

        </div>
        <div class="controllerRow">
             <label>公共标签：</label>
             <button class="btn" data-clipboard-target="#sourcebox" value="arclist" type="button"> arclist </button>
             <button class="btn" data-clipboard-target="#sourcebox" value="channel" type="button"> channel </button>
             <button class="btn" data-clipboard-target="#sourcebox" value="type" type="button"> type </button>
             <button class="btn" data-clipboard-target="#sourcebox" value="flink" type="button"> flink </button>
             <button class="fixed" data-clipboard-text="{dede:include filename='HEAD.htm'/}" type="button"> HEAD.htm </button>
             <button class="fixed" data-clipboard-text="{dede:include filename='FOOTER.htm'/}" type="button"> FOOTER.htm </button>
             <button class="fixed" data-clipboard-text="[field:global.autoindex/]" type="button"> 自动递增 </button>
             <button class="fixed" data-clipboard-text="{dede:global.cfg_powerby/}" type="button"> 版权 </button>
             <button class="fixed" data-clipboard-text="{dede:global.cfg_beian/}" type="button"> 备案 </button>
             <button class="fixed" data-clipboard-text="{dede:global.cfg_tel/}" type="button"> 电话 </button>
             <button class="fixed" data-clipboard-text="{dede:global.cfg_phone/}" type="button"> 手机 </button>
             <button class="fixed" data-clipboard-text="{dede:global.cfg_qq/}" type="button"> QQ </button>
             <button class="fixed" data-clipboard-text="{dede:global.cfg_email/}" type="button"> 邮箱 </button>
             <button class="fixed" data-clipboard-text="{dede:global.cfg_address/}" type="button"> 地址 </button>
             <button class="fixed_html" value="index_sql" type="button"> 首页SQL </button>
             <button class="fixed_html" value="jump_wap" type="button"> 跳转手机JS </button>
            <button class="fixed" data-clipboard-text="[field:global.autoindex/]" type="button"> 递增autoindex </button>
            <button class="fixed" data-clipboard-text="[field:global.autoindex  runphp='yes']if(1==@me) @me='HTML';else @me='';[/field:global.autoindex]" type="button"> 递增第一属性 </button>
            <button class="fixed" data-clipboard-text="[field:global.autoindex  runphp='yes']--@me;if((0 == @me % 4) && 0 != @me) @me='HTML';else @me = '';[/field:global.autoindex]" type="button"> 递增求余属性 </button>

        </div>
        <div class="controllerRow">
            <label>首单页标签：</label>
            <button class="btn" data-clipboard-target="#sourcebox" value="index_arclist" type="button"> arclist大图 </button>
            <button class="btn" data-clipboard-target="#sourcebox" value="index_channel" type="button"> channel-Top </button>
            <button class="btn" data-clipboard-target="#sourcebox" value="index_channel_typeid" type="button"> channel-Typeid </button>
            <button class="fixed" data-clipboard-text="{dede:field name='position'/}" type="button"> 当前位置 </button>
            <button class="fixed" data-clipboard-text="{dede:type}[field:id function='GetTopType(@me)' /]{/dede:type}" type="button"> Top栏目名称 </button>
            <button class="fixed_html" value="toptypeen" type="button"> Top栏目英文名 </button>
            <button class="fixed" data-clipboard-text="{dede:type}[field:id function='GetTopid(@me)' /]{/dede:type}" type="button"> Top栏目ID </button>

            <button class="fixed" data-clipboard-text="{dede:field.content /}" type="button"> 栏目内容 </button>

            <button class="fixed_html" value="nav_onehead" type="button"> 同一HEAD当前页 </button>
            <button class="fixed_html" value="nav_arcid" type="button"> 文章ID为导航 </button>
            <button class="fixed_html" value="nav_topid" type="button"> TopID为导航JS </button>
        </div>
        <div class="controllerRow">
            <label>列表页标签：</label>
            <button class="btn" data-clipboard-target="#sourcebox" value="list" type="button"> 列表list </button>
            <button class="fixed_html" value="list_page" type="button"> 页码HTML </button>
            <button class="fixed_html" value="wap_list_page" type="button"> 手机页码HTML </button>
            <button class="fixed_html" value="page_css" type="button"> 页码CSS </button>
            <button class="fixed" data-clipboard-text="{dede:type}[field:typelink /]{/dede:type}" type="button"> 返回列表 </button>
            <button class="fixed" data-clipboard-text="{dede:type typeid='1'}[field:typelink /]{/dede:type}" type="button"> Type-ID </button>
            <button class="fixed_html" value="search_keyword" type="button"> 搜索关键字 </button>

            <button class="fixed" data-clipboard-text="{dede:global.cfg_webname/}" type="button"> 站点名称 </button>
            <button class="fixed" data-clipboard-text="{dede:global.cfg_keywords/}" type="button"> 站点关键字 </button>
            <button class="fixed" data-clipboard-text="{dede:global.cfg_description/}" type="button"> 站点描述 </button>

            <button class="fixed" data-clipboard-text="{dede:field.typename /}" type="button"> 当前栏目名称 </button>
        </div>
        <div class="controllerRow">
            <label>详情页标签：</label>
            <button class="fixed" data-clipboard-text="{dede:field.title/}" type="button"> 文章标题 </button>
            <button class="fixed" data-clipboard-text="{dede:field name='arcurl'/}" type="button"> 文章链接 </button>
            <button class="fixed" data-clipboard-text="{dede:field.litpic/}" type="button"> 文章缩略图 </button>
            <button class="fixed_html" value="arc_pubdate" type="button"> 发布时间 </button>
            <button class="fixed" data-clipboard-text="{dede:field.source/}" type="button"> 文章来源 </button>
            <button class="fixed" data-clipboard-text="{dede:field.writer/}" type="button"> 作者 </button>
            <button class="fixed" data-clipboard-text="{dede:adminname/}" type="button"> 责任编辑 </button>
            <button class="fixed" data-clipboard-text="{dede:field.description/}" type="button"> 文章简介 </button>
            <button class="fixed" data-clipboard-text="{dede:field.body/}" type="button"> 正文内容 </button>
            <button class="fixed_html" value="arc_click" type="button"> 点击数 </button>
            <button class="fixed_html" value="arc_prev" type="button"> 上一篇 </button>
            <button class="fixed" data-clipboard-text="{dede:prenext get='nexturl' /}" type="button"> 上一篇链接 </button>
            <button class="fixed" data-clipboard-text="{dede:prenext get='nexttitle' /}" type="button"> 上一篇标题 </button>

            <button class="fixed_html" value="arc_next" type="button"> 下一篇 </button>
            <button class="fixed" data-clipboard-text="{dede:prenext get='preurl' /}" type="button"> 下一篇链接 </button>
            <button class="fixed" data-clipboard-text="{dede:prenext get='pretitle' /}" type="button"> 下一篇标题 </button>

            <button class="btn" data-clipboard-target="#sourcebox" value="likearticle" type="button"> likearticle </button>
            <button class="btn" data-clipboard-target="#sourcebox" value="productimagelist" type="button"> productimagelist </button>

        </div>

        <div class="controllerRow">
            <label>常用标签内字段：</label>
            <button class="fixed" data-clipboard-text="[field:arcurl/]" type="button"> 文章url </button>
            <button class="fixed" data-clipboard-text="[field:litpic/]" type="button"> 文章缩略图 </button>
            <button class="fixed" data-clipboard-text="[field:title/]" type="button"> 标题title </button>
            <button class="fixed" data-clipboard-text="[field:fulltitle/]" type="button"> 全标题fulltitle </button>
            <button class="fixed" data-clipboard-text="[field:shorttitle/]" type="button"> 短标题shorttitle </button>
            <button class="fixed_html" value="field_pubdate" type="button"> 日期pubdate </button>
            <button class="fixed" data-clipboard-text="[field:info/]" type="button"> 简介info </button>
            <button class="fixed" data-clipboard-text="[field:description function='cn_substr(@me,300)'/]" type="button"> 描述description </button>
            <button class="fixed" data-clipboard-text="[field:global.cfg_basehost /][field:typelink/][field:defaultname/]" type="button"> 全称Typelink </button>
            <button class="fixed" data-clipboard-text="[field:global.cfg_webname /]" type="button"> 内部站点名 </button>

        </div>

        <div class="controllerRow">
            <label>文件批量操作：</label>
            <button value="cmd_remove_bom" type="button"> 去除BOM </button>
            <button value="cmd_format_html" type="button"> 格式化HTML </button>

            <button value="cmd_replace_dedecms" type="button"> 替换头部dede </button>
            <button value="cmd_replace_dedecms_seo" type="button"> 替换头部SEO </button>
            <button value="cmd_replace_dedecms_perfect" type="button"> 完美替换头部 </button>
            <button value="cmd_replace_dedecms_equals" type="button"> 替换公共Equals </button>
            <button value="cmd_replace_dedecms_regular" type="button"> 替换公共Regular </button>
            <button value="cmd_replace_dedecms_closetag" type="button"> 替换公共CloseTag </button>
            <button value="cmd_replace_telqq" type="button"> 替换电话QQ </button>
            <button value="cmd_replace_public" type="button"> 替换Public </button>
            <button value="cmd_replace_name" type="button"> 重命名htm </button>

        </div>

        <div class="controllerRow">
            <label>常用操作功能：</label>
            <button value="cmd_open_input" type="button"> 打开输入目录 </button>
            <button value="cmd_open_output" type="button"> 打开输出目录 </button>
            <button value="cmd_clear_input" type="button"> 清空输入目录 </button>
            <button value="cmd_clear_output" type="button"> 清空输出目录 </button>

            <button value="cmd_convert_UTF-8_GB2312" type="button"> UTF8转GB2312 </button>
            <button value="cmd_convert_UTF-8_GBK" type="button"> UTF8转GBK </button>
            <button value="cmd_convert_GB2312_GBK" type="button"> GB2312转GBK </button>
            <button value="cmd_convert_GB2312_UTF-8" type="button"> GB2312转UTF8 </button>
            <button value="cmd_convert_GBK_UTF-8" type="button"> GBK转UTF8 </button>
            <button value="cmd_convert_GBK_GB2312" type="button"> GBK转GB2312 </button>

        </div>
    </fieldset>

</form>


<!--隐藏资料元素-->
<div class="hidden_div">
    <textarea id="fixed_html_jump_wap"><script type="text/javascript">function getPhoneURL(){var goPhoneURL="";if(""=="{dede:field.id /}"){goPhoneURL="/m/index.php";return goPhoneURL}goPhoneURL="{dede:field.typename /}"=="{dede:field.title runphp='yes'} @me = trim(strrchr('@me', $GLOBALS['cfg_list_symbol']) ? strrchr('@me', $GLOBALS['cfg_list_symbol']) : '@me'); {/dede:field.title}"?"/m/list.php?tid={dede:field.id /}":"/m/view.php?aid={dede:field.id /}";return goPhoneURL}if(window.location.toString().indexOf("pref=padindex")!=-1){}else{if(/AppleWebKit.*Mobile/i.test(navigator.userAgent)||(/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){if(window.location.href.indexOf("?mobile")<0){try{if(/Android|Windows Phone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){window.location.href=getPhoneURL()}else{if(/iPad/i.test(navigator.userAgent)){}else{}}}catch(e){}}}}</script></textarea>
    <textarea id="fixed_html_index_sql">{dede:sql sql="SELECT content FROM `#@__arctype` WHERE id=1 "}[field:content  function='cn_substr(Html2Text(@me), 1000)' /]{/dede:sql}</textarea>
    <textarea id="fixed_html_toptypeen">{dede:type}[field:id function="GetTopType(@me, 'enname')" /]{/dede:type}</textarea>
    <textarea id="fixed_html_list_page"><div id="Paging"><div class="Pagination">{dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="3"/}</div></div></textarea>
    <textarea id="fixed_html_wap_list_page"><div id="Paging"><div class="Pagination">{dede:pagelist listitem="index,end,pre,next,pageno" listsize="1"/}</div></div></textarea>
    <textarea id="fixed_html_field_pubdate">[field:pubdate function="MyDate('Y-m-d',@me)" /]</textarea>
    <textarea id="fixed_html_arc_pubdate">{dede:field.pubdate function="MyDate('Y-m-d H:i',@me)"/}</textarea>
    <textarea id="fixed_html_arc_click"><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}" type='text/javascript'></script></textarea>
    <textarea id="fixed_html_arc_prev">{dede:prenext get='next' function="str_replace('下一篇','上一篇',@me)" /}</textarea>
    <textarea id="fixed_html_arc_next">{dede:prenext get='pre' function="str_replace('上一篇','下一篇',@me)"/}</textarea>
    <textarea id="fixed_html_nav_onehead">{dede:field name='typeid' runphp='yes'}(@me == '') ? @me = 'active' : @me = '';{/dede:field}</textarea>
    <textarea id="fixed_html_nav_arcid">{dede:field name='aid' runphp='yes'}@me = @me=='4'?" class='on'":'';{/dede:field}</textarea>
    <textarea id="fixed_html_nav_topid">
        <script type="text/javascript">
            +(function () {var current_class='active', current_nav = document.getElementById("nav_{dede:type}[field:id function='GetTopid(@me)'/]{/dede:type}");current_nav && current_nav.setAttribute("class", current_nav.getAttribute('class') ? (current_nav.getAttribute('class') + " " + current_class) : " " + current_class);})();
        </script>
    </textarea>
    <textarea id="fixed_html_search_keyword">搜索<strong style="color:red;">{dede:global name='keyword' function='RemoveXSS(@me)'/}</strong>结果页：</textarea>
    <textarea id="fixed_html_page_css">
       /*页码样式-基础版-紧凑型（无空隙）*/
        #Paging {font-family:'Microsoft YaHei','Arial',sans-serif;font-size:14px;line-height: 16px;text-align:center;width:100%;overflow:hidden;}
        .Pagination {display:inline-block;}
        .Pagination a, .Pagination span {display:block;float:left;background:#f6f6f6;text-align:center;padding:5px 10px;}
        .Pagination a {border:1px solid #dfdfdf;color:#555;text-decoration:none;}
        .Pagination a:hover {color:#fff;background:#2fd0b5;}
        .Pagination span.current {border:1px solid #2fd0b5;background:#2fd0b5;color:white;}
        .Pagination span.disabled {border:1px solid #dfdfdf;color:#aaa;cursor:not-allowed;}
        .Pagination .pageinfo {border:1px solid #dedede;color:#333;margin-left:10px;}
        .Pagination .pageselect {min-width:60px;padding:5px;border:1px solid #ccc;margin-left:10px;}
        .Pagination .pagejump {display:inline-block;border:1px solid #dedede;color:#333;margin-left:10px;padding:2px 4px;}
        .Pagination .pagejump .pagejumpinput {width:40px;border:1px solid #2fd0b5;}
        .Pagination .pagejump .pagejumpsubmit {border:1px solid #2fd0b5;background:#2fd0b5;color:white;padding:3px 5px;cursor:pointer;}
        @media screen and (max-width:767px) {
            #Paging {font-size:12px;line-height: 14px;}
            .Pagination a,.Pagination span {padding:4px 8px; margin: 0 1px;}
            .Pagination .pageinfo {display:none;}
            .Pagination .pageselect {display:none;}
            .Pagination .pagejump {display:none;}
        }

         /*页码样式-基础版-稀疏型（有空隙）*/
        #Paging {font-family:'Microsoft YaHei','Arial',sans-serif;font-size:14px;line-height: 16px;text-align:center;width:100%;overflow:hidden;}
        .Pagination {display:inline-block;}
        .Pagination span {display:block;float:left;color:#666;border:1px solid #ff0000;background:#f8f8f8;text-align:center;padding:5px 10px;margin:0 5px;}
        .Pagination a {display:block;float:left;color:#666;border:1px solid #ff0000;background:#f8f8f8;text-align:center;text-decoration:none;padding:5px 10px;margin:0 5px;}
        .Pagination a:hover {color:#fff;border:1px solid #ff0000;background:#ff0000;}
        .Pagination span.current {color:#fff;border:1px solid #ff0000;background:#ff0000;}
        .Pagination span.disabled {border:1px solid #dfdfdf;color:#aaa;cursor:not-allowed;}
        .Pagination .pageinfo {border:1px solid #ff0000;color:#666;margin-left:10px;background:none;}
        .Pagination .pageselect {min-width:60px;padding:5px;border:1px solid #ccc;margin-left:10px;}
        .Pagination .pagejump {display:inline-block;border:1px solid #dedede;color:#333;margin-left:10px;padding:2px 4px;}
        .Pagination .pagejump .pagejumpinput {width:40px;border:1px solid #ff0000;}
        .Pagination .pagejump .pagejumpsubmit {border:1px solid #ff0000;background:#ff0000;color:white;padding:3px 5px;cursor:pointer;}
        @media screen and (max-width:767px) {
            #Paging {font-size:12px;line-height: 14px;}
            .Pagination a,.Pagination span {padding:4px 8px;margin:0 1px;}
            .Pagination .pageinfo {display:none;}
            .Pagination .pageselect {display:none;}
            .Pagination .pagejump {display:none;}
        }

        /*页码样式-特效版-反转型（默认有背景色hover为中空）*/
        #Paging {font-family:'Microsoft YaHei','Arial',sans-serif;font-size:14px;line-height: 16px;text-align:center;width:100%;overflow:hidden;}
        .Pagination {display:inline-block;}
        .Pagination span {display:block;float:left;background-color:#3b9ef3;border-radius:3px;color:#fff;-webkit-transition:all .3s;-moz-transition:all .3s;-ms-transition:all .3s;transition:all .3s;padding:5px 15px;margin:0 5px;}
        .Pagination a {display:block;float:left;background-color:#3b9ef3;border-radius:3px;color:#fff;-webkit-transition:all .3s;-moz-transition:all .3s;-ms-transition:all .3s;transition:all .3s;text-decoration:none;padding:5px 15px;margin:0 5px;}
        .Pagination a:hover {color:#3b9ef3;border:1px solid #3b9ef3;background-color:#fff;}
        .Pagination span.current {color:#3b9ef3;border:1px solid #3b9ef3;background-color:#fff;padding:4px 13px;}
        .Pagination span.disabled {border:1px solid #dfdfdf;color:#fff;cursor:not-allowed;background:#aaa;}
        .Pagination .pageinfo {border:1px solid #dedede;color:#666;margin-left:10px;background:none;}
        .Pagination .pageselect {min-width:60px;padding:5px;border:1px solid #ccc;margin-left:10px;}
        .Pagination .pagejump {display:inline-block;border:1px solid #dedede;color:#333;margin-left:10px;padding:2px 4px;}
        .Pagination .pagejump .pagejumpinput {width:40px;border:1px solid #3b9ef3;}
        .Pagination .pagejump .pagejumpsubmit {border:1px solid #3b9ef3;background:#3b9ef3;color:white;padding:3px 5px;cursor:pointer;}
        @media screen and (max-width:767px) {
            #Paging {font-size:12px;line-height: 14px;}
            .Pagination a,.Pagination span {padding:4px 8px;margin:0 1px;}
            .Pagination span.current {padding:3px 7px;margin:0 1px;}
            .Pagination .pageinfo {display:none;}
            .Pagination .pageselect {display:none;}
            .Pagination .pagejump {display:none;}
        }
    </textarea>
</div>
</body>
</html>